﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Catering_Rules
{
    public partial class StatusReportInfo
    {
        private readonly Catering_Operation.StatusReportInfo dal = new Catering_Operation.StatusReportInfo();
        public StatusReportInfo() { }

        /// <summary>
        /// 添加状态报告表信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool AddStatusReportInfo(Catering_Model.StatusReportInfo model)
        {
            return dal.AddStatusReportInfo(model);
        }

        /// <summary>
        /// 删除一条状态报告表信息
        /// </summary>
        public bool DeleteStatusReportInfo(int ID)
        {
            return dal.DeleteStatusReportInfo(ID);
        }

        /// <summary>
        /// 批量删除状态报告表信息数据
        /// </summary>
        /// <param name="whereClause">删除条件</param>
        /// <returns></returns>
        public bool DeleteStatusReportInfoList(string whereClause)
        {
            return dal.DeleteStatusReportInfoList(whereClause);
        }

        /// <summary>
        /// 得到一个状态报告表信息对象实体
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public Catering_Model.StatusReportInfo GetStatusReportInfoModel(int ID)
        {
            return dal.GetStatusReportInfoModel(ID);
        }

        /// <summary>
        /// 获得状态报告表信息数据列表
        /// </summary>
        public DataSet GetStatusReportInfoList(string strWhere)
        {
            return dal.GetStatusReportInfoList(strWhere);
        }

        /// <summary>
        /// 获得状态报告表信息数据列表数量
        /// </summary>
        public int GetStatusReportInfoListCount(string strWhere)
        {
            return dal.GetStatusReportInfoListCount(strWhere);
        }
    }
}
